﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lab1.CriterionSpace
{
    public class CriterionEditorModel
    {
        private QuestionService qService = new QuestionService();
        private AnswerService aService = new AnswerService();
        RecommendationService rService = new RecommendationService();
        public Criterion Criterion { get; set; }
        public IEnumerable<Question> QuestionList
        {
            get
            {
                return qService.getAll();
            }
        }
        public IEnumerable<AnswerVariant> AnswerList
        {
            get
            {
                return aService.getAll();
            }
        }
        public IEnumerable<Recommendation> RecommendationList
        {
            get
            {
                return rService.getAll();
            }
        }
    }
}
